# io流操作工具类
import os

# 文本覆盖写 fileName输出文件路径 content应该是一个字符串
def textOverrideWrite(fileName, content):
    if not content or len(content) == 0:
        return
    with open(fileName, 'w') as f:
        f.write(content)


# 文本读 返回全部文本内容
def textRead(fileName):
    with open(fileName, 'r') as f:
        return f.read()


# 文本读 返回由每一行文本组成的列表 会带有换行符
def textReadLines(fileName):
    with open(fileName, 'r') as f:
        return f.readlines()
